package university.dropcourse.service;

import com.restfb.DefaultFacebookClient;
import com.restfb.FacebookClient;
import com.restfb.types.Page;
import com.restfb.types.User;

public class FacebookClientTest {    
  public static String API_KEY = "YOUR API KEY";
  public static String SECRET = "YOUR SECRET";

  public static void main(String args[]) {

    // Create the client instance
	  FacebookClient facebookClient = new DefaultFacebookClient("145634995501895|2.AQC33tIDB4XEaCeh.3600.1311660000.0-1485477273|56nyVQoSDOamL4XATJnTVTAjsNA");
	  User user = facebookClient.fetchObject("me", User.class);
	  Page page = facebookClient.fetchObject("cocacola", Page.class);

	  System.out.println("User name: " + user.getName());
	  System.out.println("Page likes: " + page.getLikes());
  }
   
}